package com.mediator.self;

public class Client {
    public static void main(String[] args) {
        ConcretApplianceMediator concretApplianceMediator = new ConcretApplianceMediator();
        AirCondition airCondition = new AirCondition("空调",concretApplianceMediator);
        Fan fan = new Fan("电风扇", concretApplianceMediator);
        airCondition.sendMessage(0);
        fan.sendMessage(1);
    }
}
